package com.wms.ymcc.dto;

import com.wms.ymcc.constant.ValidationConstants;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author : 阿盛哟
 * @description : 用户注册手机注册接收的DTO
 * @createDate : 2025/5/29 16:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneRegisterDto {

    @Pattern(regexp = ValidationConstants.TEL_REGEX, message = "手机号码格式错误")
    private String mobile;

    @Size(min = 6, max = 12, message = "密码长度在6-12位之间")
    private String password;

    @NotNull(message = "注册渠道不能为空")
    private Integer regChannel;

    @NotEmpty(message = "验证码不能为空")
    private String smsCode;
}